package com.dsmclub.myfootballds;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.GridView;
//import android.widget.TextView; // Will be used later
//import android.widget.Toast; // Will be used later
//import android.widget.AdapterView.OnItemClickListener; // Will be used later

public class TodayTabActivity extends Activity {

	private static GridView gridView;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_todaytab);
        
        gridView = (GridView) findViewById(R.id.gridView);
        gridView.setAdapter(new GridItemAdapter(this, Scores.instance().scores()));
      
        
        /*gridView.setOnItemClickListener(new OnItemClickListener() {
       			public void onItemClick(AdapterView<?> parent, View v,
       				int position, long id) {
       			   Toast.makeText(getApplicationContext(),
       				((TextView) v).getText(), Toast.LENGTH_SHORT).show();
       			}
       		});*/
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_todaytab, menu);
        return true;
    }

    
}
